package cn.pcios.kindle.server;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cn.pcios.kindle.db.repository.EpubRepository;
import cn.pcios.kindle.db.table.Epub;

@Service("epubQidianServer")
public class EpubQidianServerImpl {
	
	 @Autowired
	 EpubRepository epubDao;
	 
	 @Transactional(propagation=Propagation.NOT_SUPPORTED)
	 public List<Epub> getEpubfindAll(){
		
		 return epubDao.findAll();
		 
	 }

	@Transactional(propagation=Propagation.NOT_SUPPORTED)
	public List<Epub>  queryLimitAll(int idx,int len) {
		// TODO Auto-generated method stub
		return epubDao.queryLimitAll( idx, len);
	}
	 
	 
}
